package health.lm.com.mine.present;


import health.lm.com.component_base.base.mvp.contract.XPresent;
import health.lm.com.mine.activity.EditBankCardActivity;
import health.lm.com.mine.model.MineModel;
import health.lm.com.network.callback.SimpleCallBack;

/**
 * 提现
 */

public class EditBankCardPresenter extends XPresent<EditBankCardActivity> {


    public void addBank(String user_name, String bank_name, String bank_num) {
//        MineModel.getInstance().addBankCard(user_name, bank_name, bank_num, is_def, new SimpleCallBack<Object>() {
//            @Override
//            public void onSuccess(Object o) {
//                if (hasV()) {
//                    getV().addBankCardSuccess();
//                }
//            }
//
//        });
    }

    public void editBankCard(String id, String user_name, String bank_name, String bank_num, String is_def) {
        MineModel.getInstance().editBankCard(id, user_name, bank_name, bank_num, is_def, new SimpleCallBack<Object>() {
            @Override
            public void onSuccess(Object o) {
                if(hasV()) {
                    getV().addBankCardSuccess();
                }
            }

        });
    }
}
